143bb466cf96a89e791b7db5626055ea819dad89,java/org/apache/tomcat/util/net/NioEndpoint.java,Poller,processSendfile,#SelectionKey#KeyAttachment#boolean#,1330
Before Change
}
}catch ( IOException x ) {
if ( log.isDebugEnabled() ) log.debug("Unable to complete sendfile request:", x);
cancelledKey(sk,SocketStatus.ERROR,false);
return SendfileState.ERROR;
}catch ( Throwable t ) {
log.error("",t);
cancelledKey(sk, SocketStatus.ERROR, false);
return SendfileState.ERROR;
}
}
After Change
}
}catch ( IOException x ) {
if ( log.isDebugEnabled() ) log.debug("Unable to complete sendfile request:", x);
if (!calledByProcessor) {
cancelledKey(sk,SocketStatus.ERROR,false);
}
return SendfileState.ERROR;
}catch ( Throwable t ) {
log.error("",t);
if (!calledByProcessor) {
cancelledKey(sk, SocketStatus.ERROR, false);
}
return SendfileState.ERROR;
}